#ifndef __CN8023A_H__
#define __CN8023A_H__

#ifdef __cplusplus
extern "C" {
#endif

#ifndef CONFIG_RELAY_INA_GPIO
#define CONFIG_RELAY_INA_GPIO (4)
#endif

#ifndef CONFIG_RELAY_INB_GPIO
#define CONFIG_RELAY_INB_GPIO (5)
#endif

/**
 * @brief 初始化CN8023A
 * 
 * @return 0: 成功, -1: 失败
 */
int cn8023a_init(void);

/**
 * @brief 打开CN8023A
 */ 
void cn8023a_open(void);

/**
 * @brief 关闭CN8023A
 */
void cn8023a_close(void);

#ifdef __cplusplus
}
#endif

#endif
